package com.bootdo.put.dao;

import com.bootdo.provider.domain.GoodsInfoDO;
import com.bootdo.put.domain.PutStorageDO;
import com.bootdo.put.domain.PutStorageDetailDO;

import java.util.List;
import java.util.Map;

import com.bootdo.put.domain.dto.PutGoodsDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * 入库单详情
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-24 11:50:15
 */
@Mapper
public interface PutStorageDetailDao {

	PutStorageDetailDO get(Long putDetailId);
	
	List<PutStorageDetailDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(PutStorageDetailDO putStorageDetail);
	
	int update(PutStorageDetailDO putStorageDetail);
//	
//	int remove(Long put_detail_id);
//	
//	int batchRemove(Long[] putDetailIds);

	PutStorageDetailDO detailByTrayCode(Map<String,Object> map);

	List<PutGoodsDto> getGoodsByPut(Long putId);

	/**
	 * 获取货位信息
	 * @return
	 */
	int countPsd(Long providerId);

	List<PutStorageDetailDO> getPsd(Long providerId);

	/**
	 * 获取没有货位的入库详情单根据供应商id分组
	 * @return
	 */
	List<PutStorageDO> getPsdGroup();

}
